From 4756442250b7beecee6dbda36820a9fbdf6aea45 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 27 Jun 2023 20:58:04 +0100 Subject: Store function pointer in closure --- ....shedlang.compiler.testing.snapshots.Snapshotter)].expected | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 8ef7bbc3..e0f30646 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -15,7 +15,7 @@ Function[2]: - func[2] sig=1 Code[2]: - func[1] size=5 - - func[2] size=16 + - func[2] size=27 Custom: - name: "name" - func[0] @@ -31,8 +31,9 @@ Custom: - 2: F func=2 [ binding=global vis=default ] Custom: - name: "reloc.CODE" - - relocations for section: 3 (Code) [1] + - relocations for section: 3 (Code) [2] - R_WASM_FUNCTION_INDEX_LEB offset=0x000016(file=0x000097) symbol=0 + - R_WASM_TABLE_INDEX_SLEB offset=0x000020(file=0x0000a1) symbol=1 Code Disassembly: @@ -46,4 +47,7 @@ Code Disassembly: 000096: 10 80 80 80 80 00 | call 0 00009c: 21 00 | local.set 0 00009e: 20 00 | local.get 0 - 0000a0: 0b | end \ No newline at end of file + 0000a0: 41 80 80 80 80 00 | i32.const 0 + 0000a6: 36 02 00 | i32.store 2 0 + 0000a9: 20 00 | local.get 0 + 0000ab: 0b | end \ No newline at end of file -- cgit v1.2.3